package com.dongrj.framework.starter.log.property;

import ch.qos.logback.core.Context;
import ch.qos.logback.core.spi.PropertyDefiner;
import ch.qos.logback.core.status.Status;
import com.dongrj.framework.core.utils.AppUtils;
import com.dongrj.framework.starter.log.constant.LogConstant;
import lombok.extern.slf4j.Slf4j;

/**
 * @author dongrongjun
 * @date 2020/08/04
 */
@Slf4j
public class LogPathProperty implements PropertyDefiner {

    @Override
    public String getPropertyValue() {
        String appId = AppUtils.getAppId();
        return LogConstant.LOG_PATH_PREFIX + appId;
    }

    @Override
    public void setContext(Context context) {

    }

    @Override
    public Context getContext() {
        return null;
    }

    @Override
    public void addStatus(Status status) {

    }

    @Override
    public void addInfo(String s) {

    }

    @Override
    public void addInfo(String s, Throwable throwable) {

    }

    @Override
    public void addWarn(String s) {

    }

    @Override
    public void addWarn(String s, Throwable throwable) {

    }

    @Override
    public void addError(String s) {

    }

    @Override
    public void addError(String s, Throwable throwable) {

    }
}
